<template>
  <div class="app">
    <h1>当前的n值是:{{n}}</h1>
    <button @click="n+=1">点我n+1</button>
    <Person/>
  </div>
</template>

<script>
  import Person from './components/Person'

  export default {
    name:'App',
    data() {
      return {
        n:1
      }
    },
    components:{Person}
  }
</script>

<style>
  .app {
    background-color: gray;
    padding: 10px;
  }
</style>